<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <script src="vue.min.js"></script>
</head>
<body>
<div id="app">
  <p v-on="click: onclick">触发一个方法</p>
  <a v-on="click: n++">ddd</a>
</div>
<script>
  var vm = new Vue({
    el: '#app',
    data: {
      n: 0
    },
    methods: {
      onclick: function (e) {
        console.log(e.target.tagName)//P
        console.log(e.targetVM === this)//true
      }
    }
  })
</script>
</body>
</html>